home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / MorphOS / Epic4_mos / share / epic / help / 5_programming / stack < prev    next >
Encoding:
Text File  |  2002-10-28  |  1.2 KB  |  33 lines

  1. Synopsis:
  2.    stack push|pop|list alias|assign|on|set [<item>]
  3.  
  4. Description:
  5.    STACK is a convenient mechanism for storing current aliases, variables,
  6.    and hooks in a stack.  New aliases, variables, or hooks with the same
  7.    names or scopes can be created without disturbing the stacked ones.
  8.    Those that are stacked can be restored at any time (clobbering any
  9.    current settings in favor of the saved ones).
  10.  
  11.    There are three commands currently available to STACK.  The first, push,
  12.    pushes an item onto a stack bearing its name.  The second, pop, removes
  13.    the most recent pushed item off its stack.  The last, list, shows the
  14.    contents of the named stack.
  15.  
  16. Examples:
  17.    To push the current WHO hook onto the stack:
  18.       stack push on who
  19.  
  20.    To pop the most recently pushed $foo variable off its stack:
  21.       stack pop assign foo
  22.  
  23.    To list the current alias stack:
  24.       stack list alias
  25.  
  26. See Also:
  27.    alias(5); assign(5); on(5)
  28.  
  29. Bugs:
  30.    STACK LIST works, but not quite as one would expect.  Instead of listing
  31.    each individual alias, variable, or hook separately, all are clumped
  32.    together.  Their order is correct, but the output may be confusing.
  33.